/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pb138.xml.wrda.core;

import java.util.Objects;

/**
 *
 * @author N
 */
public class WsdlOperation {

    private String name;
    private String input;
    private String output;
    private String fault;
    
    public WsdlOperation(){
        this.name = "";
        this.input = "";
        this.output = "";
        this.fault = "";
    }

    public WsdlOperation(String name, String input, String output, String fault) {
        this.name = name;
        this.input = input;
        this.output = output;
        this.fault = fault;
    }

    public void printAllAttributes() {
        System.out.println(this.name + " " + this.input + " " + this.output + " " + this.fault);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInput() {
        return input;
    }

    public void setInput(String input) {
        this.input = input;
    }

    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public String getFault() {
        return fault;
    }

    public void setFault(String fault) {
        this.fault = fault;
    }

    @Override
    public String toString() {
        return "name: " + this.name + " input: " + this.input + " output: " + this.output + " fault: " + this.fault;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final WsdlOperation other = (WsdlOperation) obj;
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 67 * hash + Objects.hashCode(this.name);
        hash = 67 * hash + Objects.hashCode(this.input);
        hash = 67 * hash + Objects.hashCode(this.output);
        hash = 67 * hash + Objects.hashCode(this.fault);
        return hash;
    }

}
